#include "CanvasContainerUI.h"

CCanvasContainerUI::CCanvasContainerUI()
{
}

CCanvasContainerUI::~CCanvasContainerUI()
{
}

LPCTSTR CCanvasContainerUI::GetClass() const
{
    return DUI_CTR_CANVASCONTAINER;
}

LPVOID CCanvasContainerUI::GetInterface(LPCTSTR pstrName)
{
    if (_tcscmp(pstrName, DUI_CTR_CANVASCONTAINER) == 0)
        return static_cast<CCanvasContainerUI *>(this);
    return CContainerUI::GetInterface(pstrName);
}

UINT CCanvasContainerUI::GetControlFlags() const
{
    return UIFLAG_SETCURSOR;
}

void CCanvasContainerUI::SaveCapBmpToClipboard()
{
    int nSaveWidth = m_rcItem.right - m_rcItem.left;
    int nSaveHeight = m_rcItem.bottom - m_rcItem.top;
    HBITMAP hSaveBmp = CreateCompatibleBitmap(m_pManager->GetPaintDC(), nSaveWidth, nSaveHeight);
}
